Lab7: vim visual mode 1. given the following text: one two three four five six seven @ eight nine 123 456 789 123 456 789 Your cursor is on the '@' character. use visual mode to: (you are encouraged to give multiple answers) a) delete eight and nine b) change three into tee c) replace both 789's with ### d) change four into upper case e) swap seven and eight f) delete the last 2 lines g) delete all 3 lines h) change one and six into XXX i) change the '@' and the characters above and below it into * j) delete the stars created in the previous exercise, including all characters to the right of them k) add a dash '-' and a space ' ' on the column between one and two ↓↓↓ answers below ↓↓↓ 1. I will provide some examples for each question a) w v ee d w v ee x w v 2e d w v 2e x w v $ d w v $ x w v d w v x w ctrl-v shift-D w ctrl-v shift-X b) k v h d k v h x v d v x c) v b r # v iw r # v b c ### j v b r # combine one of the above with any one of 3w . 3W . $ b . (you can drop the b if first part contained "iw") 3 shift- 3w v e r # 3w v iw r # $ v b r # $ v iw r # d) k w v e U k w v e ~ k w v iw U shift- v e U w v e c FOUR e) b v e d ww v e p bb h P b v iw x 2w P l v e x 2b P w v e d 2b v e p 3 p f) shift-V d shift-V x v shift-D v shift-X g) shift-V o d v o shift-D v ip d (both v and d with or without shift) {j shift-V }k d { shift-V 2 x h) 0w ctrl-v e k rX 3b ctrl-v iw j rX - v iw c XXX + . i) ctrl-v 2 r* ctrl-v koj r* j ctrl-v kk c* j) ctrl-v 2 shift-D j ctrl-v kk $d ctrl-v koj 3e x k) b ctrl-v o shift-I - 2bek ctrl-v 2j shift-A - ctrl-[ Fxj ctrl-v kk shift-A -